{extend name='base'/}
{block name="content"}
    <ol class="breadcrumb" style="background-color: #f9f9f9;padding:8px 0;margin-bottom:10px;">
        <li>
            <a href=""><i class="fa fa-cogs"></i>
               链接管理</a>
        </li>
        <li class="active">
            <a href="">链接添加</a>
        </li>
    </ol>
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#tab1">链接管理</a></li>
        <li><a href="">链接添加</a></li>
    </ul>
    <form action="" method="post">
        <div class="panel panel-default">
            <div class="panel-body">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th width="80">编号</th>
                        <th>链接名称</th>
                        <th>链接地址</th>
                        <th>缩略图</th>
                        <th width="200">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach $data as $v}
                    <tr>
                        <td>{$v['lid']}</td>
                        <td>{$v['lname']}</td>
                        <td>{$v['url']}</td>
                        <td><img src="{$v['thumb']}" style="height:5%;"></td>
                        <td>
                            <div class="btn-group">
                                <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                                <ul class="dropdown-menu dropdown-menu-right">
                                    <li><a href="{:url('newedit',['lid'=>$v['lid']])}">编辑</a></li>
                                    <li class="divider"></li>
                                    <li><a href="javascript:;" onclick="if(confirm('确认删除吗???')) location.href='{:url('admin/link/del',['lid'=>$v['lid']])}'">删除</a></li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </form>
    <div class="pagination pagination-sm pull-right">

    </div>
{/block}